package org.agile4j.rpc.ngbc.server.service.impl;

import org.agile4j.rpc.ngbc.pojo.Person;
import org.agile4j.rpc.ngbc.service.HelloService;
import org.agile4j.rpc.server.annotation.RpcService;

/**
 * Created by Administrator on 2016/8/31.
 */
@RpcService(HelloService.class)
public class HelloServiceImpl implements HelloService {
    @Override
    public String hello(String name) {
        return "Hello! " + name;
    }

    @Override
    public String hello(Person person) {
        return "Hello! " + person.getFirstName() + " " + person.getLastName();
    }
}
